<template>
  <div class="container">
    <div class="main">
      <div class="main-bg">
        <img src="../../assets/images/main-bg.jpg" />
      </div>
      <div class="main-form">
        <!-- 登录和注册的二级路由 -->
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref, onMounted, onUnmounted, reactive } from "vue"
import { useRouter } from "vue-router"


</script>

<style scoped>
.container {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 1000px;
  background: url(../../assets/images/main-bg1.jpg); /* 图片路径 */
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-background-size: cover;
  -o-background-size: cover;
  background-position: center 0;
  z-index: -999;
}
.container .main {
  display: flex;
  width: 800px;
  height: 500px;
  background-color:#3f454b;
  margin: auto;
  opacity: 0.8;
  border-radius: 50px;
}
.main .main-bg img {
  width: 400px;
  height: 500px;
  border-radius: 50px 0px 0px 50px;
}
.main .main-form{
  display: flex;
  flex-direction: column;
}
</style>
